package exercise;

public class EX01_Q07 {

	// 연산자 우선순위
	public static void main(String[] args) {
		double x = 2.5;
		double y = -1.5;
		int m = 18;
		int n = 4;
		double re = 0;
		double re1 = 0;
		double re2 = 0;
		double re3 = 0;
		
		re = x + n * y - ( x + n) * y;
		re1 = m/n+m%n;
		re2 = 5 * x - n / 5;
		re3 = 1-(1-(1-(1-n)));
				
		
		System.out.println(re);
		System.out.println(re1);
		System.out.println(re2);
		System.out.println(re3);
		
		
		
	}

}
